package filecheck;

import java.io.File;

/**
 * Created by lawrence on 2015/9/23.
 */
public class ListFilesTest {
    public static void main(String[] args) {
        File file = new File("D:/listfiletest/demo/");
        if (!file.exists()) {
            file.mkdirs();
        }
        if (file.isDirectory()) {
            for (File chil : file.listFiles()) {
                System.out.println(chil);
            }
        }
//        System.out.println(file.listFiles());
    }
}
